body {
}

#app {
  display: flex;
  justify-content: center;
  flex-direction: column;
  align-items: center;
}

* {
  box-sizing: border-box;
  padding: 0;
  margin: 0;
}

.banner {
  h1 {
    margin-top: 40px;
    font-size: 32px;
    color: #ff7f50;
  }

  p {
    text-align: center;
  }
}


main {
  margin-top: 10px;
  background-color: #f0eeee;
  width: 400px;
  height: 500px;
  border-radius: 5px 5px 0 0;
  padding: 10px;
}

.el-scrollbar__wrap {
  padding-right: 10px;
  overflow-x: hidden;
}

.el-scrollbar__view {
  padding: 10px;

  > div {
    font-size: 14px;
    display: flex;
    position: relative;
    margin-bottom: 10px;
    align-items: flex-start;

  }

  .room_in {
    font-size: 12px;
    justify-content: center;
  }

  .me {
    justify-content: flex-end;

    .left {
      display: flex;
      flex-direction: column;
    }

    .title {
      text-align: right;
      margin-right: 10px;
      margin-bottom: 5px;


    }

    .content {
      background-color: #9eea6a;
      min-height: 30px;
      border-radius: 5px;
      padding: 5px 10px;
      color: #333;
      text-align: right;
      position: relative;
      margin-right: 10px;
      max-width: 100%;
      line-break: anywhere;

      &:before {
        content: '';
        display: inline-block;
        position: absolute;
        right: -10px;
        top: 10px;
        border-width: 5px;
        border-style: solid;
        border-color: transparent transparent transparent #9eea6a;

      }
    }

    img {
      width: 40px;
      height: 40px;
      border-radius: 5px;
    }
  }

  .other {
    justify-content: flex-end;
    flex-direction: row-reverse;

    .left {
      display: flex;
      flex-direction: column;

      .title {
        margin-left: 10px;
        margin-bottom: 5px;
      }
    }

    img {
      width: 40px;
      height: 40px;
      border-radius: 5px;
    }

    .content {
      margin-left: 10px;
      min-height: 30px;
      background-color: #ffffff;
      border-radius: 5px;
      padding: 5px 10px;
      color: #333;
      position: relative;

      &::before {
        content: '';
        display: inline-block;
        position: absolute;
        top: 10px;
        border-width: 5px;
        border-style: solid;
        left: -10px;
        border-color: transparent #fff transparent transparent;
      }
    }
  }
}


.user.left {


}

.revert {
  width: 400px;
  display: flex;
  height: 60px;
  align-items: center;
  justify-content: center;
  background-color: #f0eeee;
  border-radius: 0 0 5px 5px;

  input {
    width: 270px;
    height: 40px;
    border-radius: 5px;
    border: 1px solid #f0eeee;
    padding-left: 20px;

    &:focus {
      outline: none;
      border: 1px solid #dcdcdc;
    }
  }

  button {
    border: none;
    background-color: coral;
    padding: 11px 20px;
    color: white;
    margin-left: 10px;
    cursor: pointer;
    border-radius: 5px;
  }
}

@media screen and (max-width: 450px) {
  main {
    width: 100%;
    height: calc(100vh - 60px);
    border-radius: 0;
    margin-top: 0;
    padding: 60px 10px 10px 10px;

  }
  .banner {
    position: fixed;
    top: 0;
    width: 100%;
    display: flex;
    background-color: white;
    align-items: center;
    flex-direction: column;
    justify-content: center;
    height: 60px;

    h1 {
      margin-top: 0;
      font-size: 20px;
    }

    p {
      font-size: 14px;
    }
  }
  .el-scrollbar {
    height: calc(100vh - 120px) !important;
  }
  .revert {
    border-top: 1px solid #d9d5d5;
    border-radius: 0;
    width: 100%;
    position: fixed;
    bottom: 0;
  }
}
